<?php
/**
 *	Executes Web Application in Container secured by Exception Handler.
 *	@package		mv2
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.03.2009
 *	@version		0.1
 */
/**
 *	Executes Web Application in Container secured by Exception Handler.
 *	@package		mv2
 *	@extends		Framework_Krypton_ApplicationRunner
 *	@uses			WebApplication 
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.03.2009
 *	@version		0.1
 */
final class WebApplicationRunner extends Framework_Krypton_ApplicationRunner
{
	/**
	 *	Runs Web Application, called by Index Script.
	 *	@access		protected
	 *	@return		void
	 */
	protected function run()
	{
		WebApplication::loadConstants();
		if( CMC_KRYPTON_MODE != CMC_KRYPTON_MODE_PRODUCTION )
			$this->initErrorHandler();
#		$testError++;												//  Test Error
#		throw new Exception( "This is a Test Exception." );			//  Test Exception
		$frontend	= new WebApplication();
		$frontend->act();
		$frontend->respond();
	}
}
?>